
angular.module('U9ImPDA.controllers')

    .controller('AppCtrl', ['$scope', 'User', function ($scope, User) {
        $scope.data = {
            photo: ''
        };

        $scope.$on('signin', function () {
            $scope.data.photo = User.get('Image');
        });

        $scope.$on('signout', function () {
            $scope.data.photo = User.get('Image');
        });
    }]);